import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/insert_tb_base_measures_task_request_entity.g.dart';


@JsonSerializable()
class InsertTbBaseMeasuresTaskRequestEntity {

	InsertTbBaseMeasuresTaskRequestEntity();

	factory InsertTbBaseMeasuresTaskRequestEntity.fromJson(Map<String, dynamic> json) => $InsertTbBaseMeasuresTaskRequestEntityFromJson(json);
	String? checkCycle='';
	///巡检周期单位（如 ”1小时“ 的小时）(数据字典id)
	String? checkCycleUnit;
	String? checkCycleUnitName='';
	List<InsertTbBaseMeasuresTaskRequestCheckCycleVoList>? checkCycleVoList;
	///管控手段
	String? controlMeasures;
	String? controlMeasuresName= '';
	String? id;
	String? instrumentId='';//后台还未给出
	String? riskMeasureId;
  ///风险措施的名字
	String? riskMeasureIdName='';
	String? season;
	///隐患排查内容
	String? troubleshootContent='';
	///工作日类型(数据字典id)
	String? workDayType;
	String? workDayTypeName='';
	String? workEndTime='';
	///任务类别
	String? workKind;
	String? workKindName='';
	String? workStartTime='';
	String? workType;
	/// 判断小时逻辑
	bool isShowInputAnd=false;
	///是否显示不输入的巡检周期
	// bool? isShowNoInput=true;
  /// 用于判断 工作时段 工作日类型 自有在未 小时的时候才显示 其余不显示不设置数据
	bool isShowTime=false;
	/// 季节性排查 和 重点时段及节假日前排查 需要展示隐藏UI 多余的UI也要隐藏
	bool isShowSeason=false;

	Map<String, dynamic> toJson() => $InsertTbBaseMeasuresTaskRequestEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class InsertTbBaseMeasuresTaskRequestCheckCycleVoList {
	InsertTbBaseMeasuresTaskRequestCheckCycleVoList();
	// String? workStartTime='';
	// String? workEndTime='';
	///工作日类型(数据字典id)
	// String? workDayType;
	// String? workDayTypeName='';
	factory InsertTbBaseMeasuresTaskRequestCheckCycleVoList.fromJson(Map<String, dynamic> json) => $InsertTbBaseMeasuresTaskRequestCheckCycleVoListFromJson(json);
  ///	工作日类型
	String? executeType;
	String? attribute;
	int? checkCycle;
	bool? isShowInputAnd=false;
	String? checkCycleUnit;
	///巡检周期单位（如 ”1小时“ 的小时）(数据字典id)
	String? checkCycleUnitName='';
	String? endTime;
  String? hourEndTime;
  String? hourStartTime;
	String? id;
	String? startTime;
	///是否显示不输入的巡检周期
	// bool? isShowNoInput=true;
	/// 用于判断 计划作业时间自有在未小时的时候才显示 其余不显示不设置数据
	bool? isShowTime=false;
	/// 季节性排查 和 重点时段及节假日前排查 需要展示隐藏UI 多余的UI也要隐藏
	bool? isShowSeason=false;

	Map<String, dynamic> toJson() => $InsertTbBaseMeasuresTaskRequestCheckCycleVoListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
